<?php 
namespace app\api\controller\v1;


//登录后基类
class UserBaseController extends BaseController{


	protected $user=[];

	function _initialize(){
		parent::_initialize();
		$this->user = $this->getInfoByToken();
		if(empty($this->user)){
			exit(json_encode(['error'=>-1,'msg'=>$this->lang['PLEASE'].$this->lang['LOGIN']],JSON_UNESCAPED_UNICODE));
		}
	}

}